class yumlocal::repos_condor(
  $condor_repo = "http://${mirrorserver}/yum/condor/stable/rhel${operatingsystemmajrelease}",
  $condor_version = "8.8",
)inherits yumlocal {
case $operatingsystem {
/CentOS|centos/:{
     yumrepo { "condor":
       baseurl => "http://${mirrorserver}/yum/condor/development/rhel${operatingsystemmajrelease}",
       descr => "condor",
       enabled => 1,
       gpgcheck => 0,
       priority => 20,
       before   => Yumrepo['site'],
     }
}

/scientific|Scientific|redhat|RedHat|Redhat/:{
     yumrepo { "condor":
       baseurl => "http://${mirrorserver}/yum/condor/${condor_version}/rhel${operatingsystemmajrelease}",
       descr => "condor",
       enabled => 1,
       gpgcheck => 0,
       priority => 20,
       before   => Yumrepo['site'],
     }
  }
}
}
